package com.example.assignment5.service;

import com.example.assignment5.commodity;

import java.util.List;

public interface CommodityService {

    void add(commodity commodity);

    void deleteById(Long id);

    void updateById(commodity commodity);

    commodity getById(Long id);

    List<commodity> getAll();

    List<commodity> getByName(String name);

    List<commodity> getByNameContaining(String name);
}
